package com.yunshan.mp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunshan.common.annotation.Excel;
import com.yunshan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 服务设置对象 mp_serve_info
 * 
 * @author yunshan
 * @date 2025-01-20
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MpServeInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 服务名称 */
    @ApiModelProperty("服务名称")
    @Excel(name = "服务名称")
    private String name;

    /** 英文名 */
    @ApiModelProperty("英文名")
    @Excel(name = "英文名")
    private String ename;

    /** 服务类型 */
    @ApiModelProperty("服务类型")
    @Excel(name = "服务类型")
    private String serveType;

    /** 门市价（元） */
    @ApiModelProperty("门市价（元）")
    @Excel(name = "门市价", readConverterExp = "元=")
    private BigDecimal price;

    /** 单位 */
    @ApiModelProperty("单位")
    @Excel(name = "单位")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String unit;

    /** 项目图片 */
    @ApiModelProperty("项目图片")
    @Excel(name = "项目图片")
    private String projectImg;

    /** 详情图 */
    @ApiModelProperty("详情图")
    @Excel(name = "详情图")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String detailsImg;

    /** 使用细则 */
    @ApiModelProperty("使用细则")
    @Excel(name = "使用细则")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String rule;

    /** 累计消费人数 */
    @ApiModelProperty("累计消费人数")
    @Excel(name = "累计消费人数")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer payCount;

    /** 状态0:上架 1下架 */
    @ApiModelProperty("状态0:上架 1下架")
    @Excel(name = "状态0:上架 1下架")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer status;

    /** 是否删除0:未删除,1:删除 */
    @ApiModelProperty("是否删除0:未删除,1:删除")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer isDeleted;

    /** 开始时间 */
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Date startTime;

    /** 结束时间 */
    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Date endTime;
}
